package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 订单实体
 */
@TableName("t_order")
@Data
public class OrderBean {
    @TableId(value = "pk_id",type = IdType.AUTO)
    private Long id;//订单id
    @TableField("fk_supplierId")
    private Long supplierId;//供应商编号
    @TableField("o_orderId")
    private String orderId;//订单编号
    @TableField("o_pact")
    private String pact;//合同编号
    @TableField("o_supplierName")
    private String supplierName;//供应商名
    @TableField("o_sumPrice")
    private Double sumPrice;//订单总价
    @TableField("o_time")
    private LocalDateTime time=LocalDateTime.now();//时间
    @TableField(exist = false)
    private List<SupplyGoodsBean> supplyGoodsList;
}
